package com.yc.demo.web;

import com.yc.demo.bean.DemoProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HelloDo {

    @Resource
    DemoProperties properties;

    @GetMapping("hello.c")
    public String hello(){
        return "hello " + properties.getName();
    }
}
